import { DeptRoleEnum, RoleEnum } from "./role.enum";


export const basicRouter = [{
    name: "首页",
    path: "/"
},
// {
//     name: "我的考勤",
//     path: "/attendance/mine"
// }, 
{
    name: "请假申请",
    path: "/oa/workflow"
}, {
    name: "我参与的项目",
    path: "/project/mine"
}, {
    name: "工作量审批",
    path: "/oa/report/mine"
}, {
    name: "工作量申报",
    path: "/project/work/mine"
}, {
    name: "通讯录",
    path: "/addressBook"
}, {
    name: "公告",
    path: "/announcement"
},]
export default [
    {
        name: "考勤审批",
        path: "/oa/attendance/examine",
        role: [DeptRoleEnum.personnel, RoleEnum.manager]
    }, {
        name: "员工考勤",
        path: "/oa/attendance/user",
        role: [DeptRoleEnum.personnel, RoleEnum.manager]
    },

    {
        name: "报表管理",
        role: [RoleEnum.manager, DeptRoleEnum.personnel],
        path: "/oa/post/admin"
    },
    {
        name: "项目统计",
        role: [RoleEnum.director],
        path: "/project/analysis"
    },
    {
        name: "项目管理",
        role: [RoleEnum.director],
        path: "/project/list"
    }, {
        name: "工资结算",
        role: [DeptRoleEnum.finance],
        path: "/project/settlement"
    }, {
        name: "扣罚管理",
        role: [RoleEnum.manager, DeptRoleEnum.finance],
        path: "/project/punish"
    }, {
        name: "公告管理",
        role: [RoleEnum.manager, DeptRoleEnum.personnel],
        path: "/oa/announcement"
    }, {
        name: "职场管理",
        role: [RoleEnum.boos],
        path: "/system"
    }, {
        name: "成员管理",
        path: "/company/member",
        role: [DeptRoleEnum.personnel]
    }, {
        name: "部门管理",
        path: "/company/dept",
        role: [DeptRoleEnum.personnel]
    }, {
        name: "合同管理",
        path: "/oa/contract",
        role: [DeptRoleEnum.finance, DeptRoleEnum.personnel]
    }, {
        name: "离职管理",
        path: "/oa/tobeleft",
        role: [DeptRoleEnum.personnel]
    }, {
        name: "面试记录",
        path: "/oa/interview",
        role: [DeptRoleEnum.personnel]
    }, {
        name: "人力库",
        role: [DeptRoleEnum.personnel],
        path: "/oa/manpower"
    }, {
        name: "宿舍管理",
        role: [DeptRoleEnum.administration],
        path: "/company/apartment"
    }, {
        name: "采购管理",
        role: [DeptRoleEnum.administration],
        path: "/company/business"
    }, {
        name: "资产管理",
        role: [DeptRoleEnum.administration],
        path: "/company/property"
    }, {
        name: "开销记录",
        role: [DeptRoleEnum.finance],
        path: "/company/log"
    }, {
        name: "上游管理",
        role: [DeptRoleEnum.business],
        path: "/oa/upstream"
    }, {
        name: "下游管理",
        role: [DeptRoleEnum.business],
        path: "/oa/downstream"
    }, {
        name: "公海库",
        role: [DeptRoleEnum.business],
        path: "/oa/seas"
    }, {
        name: "渠道记录",
        role: [DeptRoleEnum.personnel],
        path: "/oa/channel/personnel"
    }, {
        name: "渠道记录",
        role: [DeptRoleEnum.administration],
        path: "/oa/channel/administration"
    }, {
        name: "渠道记录",
        role: [DeptRoleEnum.finance],
        path: "/oa/channel/finance"
    }, {
        name: "渠道记录",
        role: [DeptRoleEnum.business],
        path: "/oa/channel/business"
    }, {
        name: "工资表",
        path: "/salary/mine"
    }, {
        name: "报表",
        path: "/post"
    }
]